package com.cuitrip.business.order.detail.orderstatus.finder;

import com.cuitrip.business.order.detail.orderstatus.BaseOrderFormPresent;
import com.cuitrip.business.order.detail.ui.IFinderOrderDetailView;
import com.cuitrip.business.order.detail.ui.model.OrderCancelReasonRenderData;
import com.cuitrip.business.order.model.OrderItem;
import com.cuitrip.service.R;
import com.cuitrip.util.ResourceUtil;

/**
 * 发现者行程退款中
 * Created by ak
 */
public class FinderRefundPresent extends BaseOrderFormPresent<IFinderOrderDetailView> {

    public FinderRefundPresent(IFinderOrderDetailView orderDetailView, OrderItem orderItem) {
        super(orderDetailView, orderItem);
    }

    @Override
    public void render() {
        mOrderDetailView.renderUi(build(mOrderItem));
    }

    @Override
    public void clickBottomAction() {
    }

    @Override
    public void clickBottomText() {

    }

    @Override
    public OrderCancelReasonRenderData buildOrderCancelReasonData(OrderItem orderItem){
        return new OrderCancelReasonRenderData(ResourceUtil.getString(R.string.book_cancel_reason), getUnvaliableReason(orderItem));
    }

    @Override
    public String getBottomActionText(OrderItem orderItem) {
        return "";
    }

    @Override
    public String getBottomText(OrderItem orderItem) {
        return "";
    }

    @Override
    public BottomButtonStyle getBottomButtonStyle(OrderItem orderItem) {
        return BottomButtonStyle.NONE;
    }

}
